package com.sunrise.scheduler.comunicacao.job;

import javax.annotation.Resource;

import lombok.Getter;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.sunrise.comunicacao.repositorio.iface.SmsRecebidaDao;
import com.sunrise.comunicacao.servico.ManterSmsRecebidaService;

@Component
public class SmsRecebidaJob implements Job {

	@Autowired
	@Getter
	private ManterSmsRecebidaService smsRecebidaService;
	
	@Autowired
	@Resource(name = "smsRecebidaDaoImpl")
	@Getter
	private SmsRecebidaDao smsRecebidaDAO;
	
	@Override
	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		smsRecebidaService.enviarResponsavelMensagensRecebidas();
		System.out.println("Testando...");
	}

}
